var express = require("express");
var router = express.Router();
var DB = require('../../../database/index')


router.post('/getFilesList',(req,res,next)=>{
    let dirList = readdirSync("./json/nav/files");
    const sql = 'select * from  user_info'
    DB.query(sql,(err,res)=>{
        console.log(err,res,'123333')
    })
    res.send(dirList)
})

module.exports = router;
